home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / the-kitchen-of-doom.swf / scripts / DefineSprite_669 / frame_1 / DoAction.as
Text File  |  2008-03-14  |  1KB  |  41 lines

  1. function SendGameLaunched(appID)
  2. {
  3.    var _loc1_ = new LoadVars();
  4.    _loc1_.func = "PLAYED";
  5.    _loc1_.id = appID;
  6.    _loc1_.vers = version;
  7.    var _loc2_ = new Date();
  8.    _loc1_.date = _loc2_.getFullYear() + "-" + _loc2_.getMonth() + "-" + _loc2_.getDate() + " " + _loc2_.getHours() + ":" + _loc2_.getMinutes() + ":" + _loc2_.getSeconds();
  9.    _loc1_.sendAndLoad(url,_loc1_,"POST");
  10. }
  11. function SendFrameRateInfo(appID, averageFPS)
  12. {
  13.    var _loc1_ = new LoadVars();
  14.    _loc1_.func = "FRAMERATE";
  15.    _loc1_.id = appID;
  16.    _loc1_.avfps = averageFPS;
  17.    _loc1_.sendAndLoad(url,_loc1_,"POST");
  18. }
  19. function SendSystemInfo(appID)
  20. {
  21.    var _loc1_ = new LoadVars();
  22.    _loc1_.func = "SYSTEM";
  23.    _loc1_.id = appID;
  24.    _loc1_.language = System.capabilities.language;
  25.    _loc1_.os = System.capabilities.os;
  26.    _loc1_.screenx = System.capabilities.screenResolutionX;
  27.    _loc1_.screeny = System.capabilities.screenResolutionY;
  28.    _loc1_.player = getVersion();
  29.    _loc1_.sendAndLoad(url,_loc1_,"POST");
  30. }
  31. function SendSendToFriend(appID, useCode)
  32. {
  33.    var _loc1_ = new LoadVars();
  34.    _loc1_.func = "SENDTOAFRIEND";
  35.    _loc1_.id = appID;
  36.    _loc1_.code = useCode;
  37.    _loc1_.sendAndLoad(url,_loc1_,"POST");
  38. }
  39. var version = "1.1";
  40. var url = "http://stats.fishinabottle.com/scripts/submitstats.php";
  41.